package cn.tedu.xxl.timer;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TimerJob {
    @Value("${server.port}")
    private String port;
    @XxlJob("job01")
    public void execute01() {
        log.info("xxx-job定时任务执行了,执行任务的进程端口:{}",port);
    }
}
